import allure
from api.ocrIdentify import OcrIdentifyAPI

class TestBusinessLicenseIdentify:

    # 前置处理
    def setup_method(self):
        self.ocrIdentify_api = OcrIdentifyAPI()

    @allure.title("营业执照OCR接口")
    def test01_error(self):
        data = {
            "picUrl": "http://127.0.0.1:8848/test.png",
            "serviceCode": "agent"
        }
        res = self.ocrIdentify_api.businessLicenseIdentify(data=data)
        print(res.json())
        assert 500 == res.status_code
